﻿using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace Admin2020.Core.Domain.Core
{
    /// <summary>
    /// 用户角色
    /// </summary>
    public class UserRole:BaseEntity
    {
        /// <summary>
        /// 用户id
        /// </summary>
        [Column("users_id")]
        public int UsersId { get; set; }

        /// <summary>
        /// 角色id
        /// </summary>
        [Column("roles_id")]
        public int RolesId { get; set; }

        /// <summary>
        /// 角色
        /// </summary>
        public Roles Roles { get; set; }

        /// <summary>
        /// 用户
        /// </summary>
        public Users Users { get; set; }
    }
}
